<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Copyright © 2006-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>OpenMP 5.0 (GNU libgomp)</title>

<meta name="description" content="OpenMP 5.0 (GNU libgomp)">
<meta name="keywords" content="OpenMP 5.0 (GNU libgomp)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Library-Index.html" rel="index" title="Library Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="OpenMP-Implementation-Status.html" rel="up" title="OpenMP Implementation Status">
<link href="OpenMP-5_002e1.html" rel="next" title="OpenMP 5.1">
<link href="OpenMP-4_002e5.html" rel="prev" title="OpenMP 4.5">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
span:hover a.copiable-link {visibility: visible}
-->
</style>


</head>

<body lang="en">
<div class="section-level-extent" id="OpenMP-5_002e0">
<div class="nav-panel">
<p>
Next: <a href="OpenMP-5_002e1.html" accesskey="n" rel="next">OpenMP 5.1</a>, Previous: <a href="OpenMP-4_002e5.html" accesskey="p" rel="prev">OpenMP 4.5</a>, Up: <a href="OpenMP-Implementation-Status.html" accesskey="u" rel="up">OpenMP Implementation Status</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Library-Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h3 class="section" id="OpenMP-5_002e0-1"><span>2.2 OpenMP 5.0<a class="copiable-link" href="#OpenMP-5_002e0-1"> &para;</a></span></h3>

<ul class="mini-toc">
<li><a href="#New-features-listed-in-Appendix-B-of-the-OpenMP-specification" accesskey="1">New features listed in Appendix B of the OpenMP specification</a></li>
<li><a href="#Other-new-OpenMP-5_002e0-features" accesskey="2">Other new OpenMP 5.0 features</a></li>
</ul>
<div class="unnumberedsubsec-level-extent" id="New-features-listed-in-Appendix-B-of-the-OpenMP-specification">
<h4 class="unnumberedsubsec"><span>New features listed in Appendix B of the OpenMP specification<a class="copiable-link" href="#New-features-listed-in-Appendix-B-of-the-OpenMP-specification"> &para;</a></span></h4>

<table class="multitable">
<thead><tr><th width="60%">Description</th><th width="10%">Status</th><th width="25%">Comments</th></tr></thead>
<tbody><tr><td width="60%">Array shaping</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">Array sections with non-unit strides in C and C++</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">Iterators</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">metadirective</code> directive</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">declare variant</code> directive</td><td width="10%">P</td><td width="25%"><em class="emph">simd</em> traits not handled correctly</td></tr>
<tr><td width="60%"><em class="emph">target-offload-var</em> ICV and <code class="code">OMP_TARGET_OFFLOAD</code>
      env variable</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Nested-parallel changes to <em class="emph">max-active-levels-var</em> ICV</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">requires</code> directive</td><td width="10%">P</td><td width="25%">complete but no non-host devices provides <code class="code">unified_address</code> or
      <code class="code">unified_shared_memory</code></td></tr>
<tr><td width="60%"><code class="code">teams</code> construct outside an enclosing target region</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Non-rectangular loop nests</td><td width="10%">P</td><td width="25%">Full support for C/C++, partial for Fortran</td></tr>
<tr><td width="60%"><code class="code">!=</code> as relational-op in canonical loop form for C/C++</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">nonmonotonic</code> as default loop schedule modifier for worksharing-loop
      constructs</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Collapse of associated loops that are imperfectly nested loops</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">Clauses <code class="code">if</code>, <code class="code">nontemporal</code> and <code class="code">order(concurrent)</code> in
      <code class="code">simd</code> construct</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">atomic</code> constructs in <code class="code">simd</code></td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">loop</code> construct</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">order(concurrent)</code> clause</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">scan</code> directive and <code class="code">in_scan</code> modifier for the
      <code class="code">reduction</code> clause</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">in_reduction</code> clause on <code class="code">task</code> constructs</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">in_reduction</code> clause on <code class="code">target</code> constructs</td><td width="10%">P</td><td width="25%"><code class="code">nowait</code> only stub</td></tr>
<tr><td width="60%"><code class="code">task_reduction</code> clause with <code class="code">taskgroup</code></td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">task</code> modifier to <code class="code">reduction</code> clause</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">affinity</code> clause to <code class="code">task</code> construct</td><td width="10%">Y</td><td width="25%">Stub only</td></tr>
<tr><td width="60%"><code class="code">detach</code> clause to <code class="code">task</code> construct</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">omp_fulfill_event</code> runtime routine</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">reduction</code> and <code class="code">in_reduction</code> clauses on <code class="code">taskloop</code>
      and <code class="code">taskloop simd</code> constructs</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">taskloop</code> construct cancelable by <code class="code">cancel</code> construct</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">mutexinoutset</code> <em class="emph">dependence-type</em> for <code class="code">depend</code> clause</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Predefined memory spaces, memory allocators, allocator traits</td><td width="10%">Y</td><td width="25%">Some are only stubs</td></tr>
<tr><td width="60%">Memory management routines</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">allocate</code> directive</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">allocate</code> clause</td><td width="10%">P</td><td width="25%">Initial support</td></tr>
<tr><td width="60%"><code class="code">use_device_addr</code> clause on <code class="code">target data</code></td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">ancestor</code> modifier on <code class="code">device</code> clause</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Implicit declare target directive</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Discontiguous array section with <code class="code">target update</code> construct</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">C/C++&rsquo;s lvalue expressions in <code class="code">to</code>, <code class="code">from</code>
      and <code class="code">map</code> clauses</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">C/C++&rsquo;s lvalue expressions in <code class="code">depend</code> clauses</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Nested <code class="code">declare target</code> directive</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Combined <code class="code">master</code> constructs</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">depend</code> clause on <code class="code">taskwait</code></td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Weak memory ordering clauses on <code class="code">atomic</code> and <code class="code">flush</code> construct</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">hint</code> clause on the <code class="code">atomic</code> construct</td><td width="10%">Y</td><td width="25%">Stub only</td></tr>
<tr><td width="60%"><code class="code">depobj</code> construct and depend objects</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Lock hints were renamed to synchronization hints</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">conditional</code> modifier to <code class="code">lastprivate</code> clause</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Map-order clarifications</td><td width="10%">P</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">close</code> <em class="emph">map-type-modifier</em></td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Mapping C/C++ pointer variables and to assign the address of
      device memory mapped by an array section</td><td width="10%">P</td><td width="25%"></td></tr>
<tr><td width="60%">Mapping of Fortran pointer and allocatable variables, including pointer
      and allocatable components of variables</td><td width="10%">P</td><td width="25%">Mapping of vars with allocatable components unsupported</td></tr>
<tr><td width="60%"><code class="code">defaultmap</code> extensions</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">declare mapper</code> directive</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">omp_get_supported_active_levels</code> routine</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Runtime routines and environment variables to display runtime thread
      affinity information</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">omp_pause_resource</code> and <code class="code">omp_pause_resource_all</code> runtime
      routines</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">omp_get_device_num</code> runtime routine</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">OMPT interface</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">OMPD interface</td><td width="10%">N</td><td width="25%"></td></tr>
</tbody>
</table>

</div>
<div class="unnumberedsubsec-level-extent" id="Other-new-OpenMP-5_002e0-features">
<h4 class="unnumberedsubsec"><span>Other new OpenMP 5.0 features<a class="copiable-link" href="#Other-new-OpenMP-5_002e0-features"> &para;</a></span></h4>

<table class="multitable">
<thead><tr><th width="60%">Description</th><th width="10%">Status</th><th width="25%">Comments</th></tr></thead>
<tbody><tr><td width="60%">Supporting C++&rsquo;s range-based for loop</td><td width="10%">Y</td><td width="25%"></td></tr>
</tbody>
</table>


</div>
</div>
<hr>
<div class="nav-panel">
<p>
Next: <a href="OpenMP-5_002e1.html">OpenMP 5.1</a>, Previous: <a href="OpenMP-4_002e5.html">OpenMP 4.5</a>, Up: <a href="OpenMP-Implementation-Status.html">OpenMP Implementation Status</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Library-Index.html" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>
